package com.ivr.cm.handler.impl;

public class Test {
	public static void main(String[] args) {
		String current = "23:30:00";
		String start = "23:30:00";
		String end = "23:30:00";
		Boolean flag = null;
		if (start.compareTo(end) < 0) {
			System.out.println("开始时间早于结束时间");
			// 开始时间早于结束时间
			flag = (current.compareTo(start) >= 0 && current.compareTo(end) <= 0);
		} else { 
			// 开始时间晚于结束时间（凌晨）
			System.out.println("开始时间晚于结束时间");
			flag =  (current.compareTo(start) >=0 || current.compareTo(end) <= 0);
		}
		
		System.out.println(flag);
	}
}
